import { AxiosPromise } from 'axios';
import { EventAssetsVo, EventAssetsQuery, EventManagerConfigsVo } from './types';
import request from '@/utils/request';

export const getImageList = (query: EventAssetsQuery): AxiosPromise<EventAssetsVo[]> => {
  return request({
    url: '/oce/third/getImageList',
    method: 'get',
    params: query
  });
};
export const getVideoList = (query: EventAssetsQuery): AxiosPromise<EventAssetsVo[]> => {
  return request({
    url: '/oce/material/list',
    method: 'get',
    params: query
  });
}
// /oce/material/syncMaterial
export const syncMaterial = (query: EventManagerConfigsVo): AxiosPromise<EventManagerConfigsVo> => {
  return request({
    url: '/oce/material/syncMaterial',
    method: 'get',
    params: query
  });
}